﻿using QFramework;
using UnityEngine;

public class AddLenFood : Food,IController
{
    public IArchitecture GetArchitecture() => MainFramework.Interface;
    
    public override void DoAction(Snake snake)
    {
        snake.AddLenth(false);
        var audioSystem = this.GetSystem<AudioSystem>();
        audioSystem.PlaySoundEffect("Sound/effects/longer");
        Destroy(this.gameObject);
    }
}